﻿package cn.edu.zjusc.Webservice;
import java.util.List;
import javax.ejb.Stateless;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;


import org.jboss.wsf.spi.annotation.WebContext;

import cn.edu.zjusc.POJO.*;
import cn.edu.zjusc.Util.CacheManager;
@Stateless
@WebService( name = "CityCodeService", serviceName = "CityCodeService")   
@SOAPBinding(style = SOAPBinding.Style.RPC)
@WebContext (contextRoot="/ZJUSCIX/Service", urlPattern="/CityCodeService") 
public class CityCodeService {
	
	/**
	 * 通过省ID获得下面的所有市
	 * @param id
	 * @return
	 */
	public List<CityCode> GetCityCodeById(@WebParam(name="id")int id) {
		return CacheManager.getCityOfOneProvince(id);
	}

}
